// @ts-ignore
const images = import.meta.glob('@/assets/english/*.webp', { eager: true });

const english: Record<string, string> = {};

for (const [key, value] of Object.entries(images)) {
  const name = key.match(/bgImg(\d+)\.webp$/)?.[0].replace('.webp', '');
  if (name) {
    english[name] = (value as { default: string }).default;
  }
}

export default english;